package com.company;

import java.util.ArrayList;

/**
 * @description:
 * @author: 10445
 * @date: Created in 2020/5/22 9:52
 * @version: v1.0
 * @modified By:
 */
public abstract class Creature {
    private String id;
    private String description;
    private int HPValue;
    private Room currentRoom;

    private Weapon currentWeapon;

    private ArrayList<Weapon> weapons = new ArrayList<>();

    public abstract void useArticle(Weapon weapon, Creature targetCreaature);

    public Creature() {
    }

    public Creature(String id, String description) {
        this.id = id;
        this.description = description;
    }

    public Creature(String id, String description, int HPValue) {
        this.id = id;
        this.description = description;
        this.HPValue = HPValue;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getHPValue() {
        return HPValue;
    }

    public void setHPValue(int HPValue) {
        this.HPValue = HPValue;
    }

    public Weapon getCurrentWeapon() {
        return currentWeapon;
    }

    public void setCurrentWeapon(Weapon currentWeapon) {
        this.currentWeapon = currentWeapon;
    }

    public ArrayList<Weapon> getWeapons() {
        return weapons;
    }

    public void setWeapons(ArrayList<Weapon> weapons) {
        this.weapons = weapons;
    }

    public Room getCurrentRoom(Room birth) {
        return currentRoom;
    }

    public void setCurrentRoom(Room currentRoom) {
        this.currentRoom = currentRoom;
    }

}
